import 'package:factoryside/bean/acc_order.dart';

accOrderDataDataFromJson(AccOrderDataData data, Map<String, dynamic> json) {
	if (json['OrderNumber'] != null) {
		data.orderNumber = json['OrderNumber'].toString();
	}
	if (json['OrderID'] != null) {
		data.orderID = json['OrderID'] is String
				? int.tryParse(json['OrderID'])
				: json['OrderID'].toInt();
	}
	if (json['AccessoryId'] != null) {
		data.accessoryId = json['AccessoryId'] is String
				? int.tryParse(json['AccessoryId'])
				: json['AccessoryId'].toInt();
	}
	if (json['AccessoryNo'] != null) {
		data.accessoryNo = json['AccessoryNo'].toString();
	}
	if (json['RecipientType'] != null) {
		data.recipientType = json['RecipientType'].toString();
	}
	if (json['CreateTime'] != null) {
		data.createTime = json['CreateTime'].toString();
	}
	if (json['StateHtml'] != null) {
		data.stateHtml = json['StateHtml'].toString();
	}
	if (json['State'] != null) {
		data.state = json['State'].toString();
	}
	if (json['orderState'] != null) {
		data.orderState = json['orderState'].toString();
	}
	if (json['FAccessoryName'] != null) {
		data.fAccessoryName = json['FAccessoryName'].toString();
	}
	if (json['ProductType'] != null) {
		data.productType = json['ProductType'].toString();
	}
	if (json['Products'] != null) {
		data.products = json['Products'].toString();
	}
	if (json['BrandName'] != null) {
		data.brandName = json['BrandName'].toString();
	}
	if (json['SubCategoryName'] != null) {
		data.subCategoryName = json['SubCategoryName'].toString();
	}
	if (json['ProdModelName'] != null) {
		data.prodModelName = json['ProdModelName'].toString();
	}
	if (json['SendUserName'] != null) {
		data.sendUserName = json['SendUserName'].toString();
	}
	if (json['SendAddress'] != null) {
		data.sendAddress = json['SendAddress'].toString();
	}
	if (json['AffiliatedPersonName'] != null) {
		data.affiliatedPersonName = json['AffiliatedPersonName'].toString();
	}
	if (json['SendUser'] != null) {
		data.sendUser = json['SendUser'].toString();
	}
	if (json['CreateDate'] != null) {
		data.createDate = json['CreateDate'].toString();
	}
	if (json['CurrentOperator'] != null) {
		data.currentOperator = json['CurrentOperator'] is String
				? int.tryParse(json['CurrentOperator'])
				: json['CurrentOperator'].toInt();
	}
	if (json['AccessoryAndServiceApplyState'] != null) {
		data.accessoryAndServiceApplyState = json['AccessoryAndServiceApplyState'].toString();
	}
	if (json['IsReturn'] != null) {
		data.isReturn = json['IsReturn'].toString();
	}
	if (json['ReturnAccessoryMsg'] != null) {
		data.returnAccessoryMsg = json['ReturnAccessoryMsg'].toString();
	}
	if (json['ReturnState'] != null) {
		data.returnState = json['ReturnState'].toString();
	}
	if (json['AccessoryState'] != null) {
		data.accessoryState = json['AccessoryState'].toString();
	}
	if (json['AccessoryStateHtml'] != null) {
		data.accessoryStateHtml = json['AccessoryStateHtml'].toString();
	}
	if (json['Address'] != null) {
		data.address = json['Address'].toString();
	}
	if (json['UserName'] != null) {
		data.userName = json['UserName'].toString();
	}
	if (json['Phone'] != null) {
		data.phone = json['Phone'].toString();
	}
	if (json['workerProvince'] != null) {
		data.workerProvince = json['workerProvince'].toString();
	}
	if (json['workerCity'] != null) {
		data.workerCity = json['workerCity'].toString();
	}
	if (json['workerArea'] != null) {
		data.workerArea = json['workerArea'].toString();
	}
	if (json['workerDistrict'] != null) {
		data.workerDistrict = json['workerDistrict'].toString();
	}
	if (json['workerAddress'] != null) {
		data.workerAddress = json['workerAddress'].toString();
	}
	if (json['workerPhone'] != null) {
		data.workerPhone = json['workerPhone'].toString();
	}
	if (json['workerName'] != null) {
		data.workerName = json['workerName'].toString();
	}
	return data;
}

Map<String, dynamic> accOrderDataDataToJson(AccOrderDataData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['OrderNumber'] = entity.orderNumber;
	data['OrderID'] = entity.orderID;
	data['AccessoryId'] = entity.accessoryId;
	data['AccessoryNo'] = entity.accessoryNo;
	data['RecipientType'] = entity.recipientType;
	data['CreateTime'] = entity.createTime;
	data['StateHtml'] = entity.stateHtml;
	data['State'] = entity.state;
	data['orderState'] = entity.orderState;
	data['FAccessoryName'] = entity.fAccessoryName;
	data['ProductType'] = entity.productType;
	data['Products'] = entity.products;
	data['BrandName'] = entity.brandName;
	data['SubCategoryName'] = entity.subCategoryName;
	data['ProdModelName'] = entity.prodModelName;
	data['SendUserName'] = entity.sendUserName;
	data['SendAddress'] = entity.sendAddress;
	data['AffiliatedPersonName'] = entity.affiliatedPersonName;
	data['SendUser'] = entity.sendUser;
	data['CreateDate'] = entity.createDate;
	data['CurrentOperator'] = entity.currentOperator;
	data['AccessoryAndServiceApplyState'] = entity.accessoryAndServiceApplyState;
	data['IsReturn'] = entity.isReturn;
	data['ReturnAccessoryMsg'] = entity.returnAccessoryMsg;
	data['ReturnState'] = entity.returnState;
	data['AccessoryState'] = entity.accessoryState;
	data['AccessoryStateHtml'] = entity.accessoryStateHtml;
	data['Address'] = entity.address;
	data['UserName'] = entity.userName;
	data['Phone'] = entity.phone;
	data['workerProvince'] = entity.workerProvince;
	data['workerCity'] = entity.workerCity;
	data['workerArea'] = entity.workerArea;
	data['workerDistrict'] = entity.workerDistrict;
	data['workerAddress'] = entity.workerAddress;
	data['workerPhone'] = entity.workerPhone;
	data['workerName'] = entity.workerName;
	return data;
}